# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : login_actions.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2023/11/12 10:06
# @Copyright: 北京码同学
from pages.buyer.home_page import HomePage
from pages.buyer.login_page import LoginPage
from pages.seller.login_page import SellerLoginPage


class SellerLoginActions:

    def seller_login(self,username,password,validcode='1512'):

        # 链式调用
        SellerLoginPage()\
            .send_keys_username(username)\
            .send_keys_password(password)\
            .send_keys_validcode(validcode)\
            .click_login_btn()